package work.work_01.oop;

/**
 * @author: lys
 * @类名: Car
 * @Title:
 * @date: 2020/7/15
 **/
public class Car extends Vegicle {
    //定义属性
    private int loader;

    //构造方法
    public Car(){}
    public Car(String brand,String color,int loader){
        super(brand,color);
        this.loader = loader;
    }

    //run方法
    public void run(){
        System.out.println("Car---running.");
    }

    public int getLoader() {
        return loader;
    }

    public void setLoader(int loader) {
        this.loader = loader;
    }
}
